import {get, post} from "./axios"

// 企业列表
const companyList = async function(data) {
    const url = `/admin/signCompany/list`
    return await get(url, data)
}

// 添加企业
const addCompanyList = async function(data) {
    const url = `/admin/signCompany/add`
    return await post(url, data)
}

// 编辑企业
const editCompanyList = async function(data) {
    const url = `/admin/signCompany/edit`
    return await post(url, data)
}

// 删除企业
const delCompanyList = async function(data) {
    const url = `/admin/signCompany/batchEdit`
    return await post(url, data)
}

// 企业注册（认证）
const registerCompany = async function(data) {
    const url = `/admin/signCompany/register`
    return await get(url, data)
}

export {
    companyList,
    addCompanyList,
    editCompanyList,
    delCompanyList,
    registerCompany
}
